package com.open.capacity.task.dao;

import com.open.capacity.task.model.TaskArea;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface TaskAreaDao {
    List<TaskArea> findTaskArea(Map<String, Object> params);

    Integer isExist(@Param("areaValue") String areaValue, @Param("id") Integer id);

    Integer addTaskArea(@Param("taskArea") TaskArea taskArea);

    Integer updateTaskArea(@Param("taskArea") TaskArea taskArea);

    Integer deleteTaskArea(@Param("taskAreaId") Integer taskAreaId);
}
